<?php
namespace Client\Table;

use Zend\Db\Sql\Select;
use Zend\Db\Sql\Where;

class MaterialCatalogTable extends CommonTable
{
    protected $table = 'hy_material_catalog';
    protected $id = 'material_catalog_id';
    
    
    /**
     * 返回所有清单
     */
    public function getAll(){
    	$select = new Select();
    	$select ->from($this->getTable())
    	->columns(array('material_catalog_id', 'material_catalog_name'))
    	->order('material_catalog_id DESC');
    	$rowset = $this->selectWith($select);
    	$result = $rowset->toArray();
    	return $result;
    }
    
}